﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="LocalReport.aspx.cs" Inherits="LuxuryResort.WebSite.LocalAdmin.LocalReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Local Report</h1>
    <asp:ListView ID="lvRoomSumary" runat="server" >
        <LayoutTemplate>
            <fieldset>
                <legend>Room Reservation Information</legend>
                <table class="roomList">
                    <tr>
                        <th style="width: 10%">
                            RoomNo
                        </th>
                        <th>
                            Customer Name
                        </th>
                        <th>
                            Check In
                        </th>
                        <th>
                            Check Out
                        </th>
                        <th>
                            Day(s) Booked
                        </th>
                        <th>
                            Payment Amount
                        </th>
                    </tr>
                    <tr runat="server" id="itemPlaceholder">
                    </tr>
                </table>
            </fieldset>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td style="width: 10%; text-align: center">
                    <asp:Label ID="lblRoomNo" runat="server" Text='<%#Eval("RoomNo") %>' />
                </td>
                <td>
                    <asp:Label ID="lblCustomerName" runat="server" Text='<%#Eval("CustomerName") %>' />
                </td>
                <td style="text-align: center">
                    <asp:Label ID="lblCheckIn" runat="server" Text='<%# ((DateTime)Eval("CheckIn")).ToString("dd/MM/yyyy") %>' />
                </td>
                <td style="text-align: center">
                    <asp:Label ID="lblCheckOut" runat="server" Text='<%# ((DateTime)Eval("CheckOut")).ToString("dd/MM/yyyy") %>' />
                </td>
                <td style="text-align: center">
                    <asp:Label ID="lblQuantity" runat="server" Text='<%#Eval("Quantity") %>' />
                </td>
                <td style="text-align: right">
                    <asp:Label ID="lblPaymentAmount" runat="server" Text='<%#Eval("PaymentAmount") %>' />
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    
    <asp:DataPager ID="pgRooms" runat="server" PagedControlID="lvRoomSumary" PageSize="10" OnPreRender="DataPagerRooms_PreRender">
        <Fields>
            <asp:NextPreviousPagerField ShowFirstPageButton="True" ShowNextPageButton="False" />
            <asp:NumericPagerField />
            <asp:NextPreviousPagerField ShowLastPageButton="True" ShowPreviousPageButton="False" />
        </Fields>
    </asp:DataPager>

    <asp:ListView ID="lvFoodSumary" runat="server">
        <LayoutTemplate>
            <fieldset>
                <legend>Food Order Information</legend>
                <table class="roomList">
                    <tr>
                        <th style="width: 10%">
                            Food/Beverage Name
                        </th>
                        <th>
                            Customer Name
                        </th>
                        <th>
                            Type
                        </th>
                        <th>
                            Quantity
                        </th>
                        <th>
                            Payment Amount
                        </th>
                    </tr>
                    <tr runat="server" id="itemPlaceholder">
                    </tr>
                </table>
            </fieldset>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td style="width: 15%; text-align: left">
                    <asp:Label ID="lblFBName" runat="server" Text='<%#Eval("FBName") %>' />
                </td>
                <td>
                    <asp:Label ID="lblCustomerName" runat="server" Text='<%#Eval("CustomerName") %>' />
                </td>
                <td style="text-align: center">
                    <asp:Label ID="lblFBType" runat="server" Text='<%# Eval("FBType") %>' />
                </td>
                <td style="text-align: center">
                    <asp:Label ID="lblQuantity" runat="server" Text='<%#Eval("Quantity") %>' />
                </td>
                <td style="text-align: right">
                    <asp:Label ID="lblPaymentAmount" runat="server" Text='<%#Eval("PaymentAmount") %>' />
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <asp:DataPager ID="dpOrders" runat="server" PagedControlID="lvFoodSumary" PageSize="10" OnPreRender="DataPagerOrders_PreRender">
        <Fields>
            <asp:NextPreviousPagerField ShowFirstPageButton="True" ShowNextPageButton="False" />
            <asp:NumericPagerField />
            <asp:NextPreviousPagerField ShowLastPageButton="True" ShowPreviousPageButton="False" />
        </Fields>
    </asp:DataPager>
</asp:Content>
